﻿<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>
            企业进销存系统
        </title>
        <link rel="stylesheet" href="./css/common.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="./css/common2.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="./css/selectedDay.css"/>
        <script type="text/javascript" src="./js/selectedDay.js"></script>
        <script type="text/javascript" src="./js/jquery-1.8.3.min.js"></script> 
        <script>
            var index = 1;
            function insertRow(tbIndex){
               var objRow = product.insertRow(tbIndex);
               var objCel = objRow.insertCell(0);
               objCel.innerHTML = "产品类型： <select> <option>sdsafasfa</option><option>dssafasdfas</option></select>"
               var objCel = objRow.insertCell(1);
               objCel.innerHTML = "产品名称： <select> <option>sdsafasfa</option><option>dssafasdfas</option></select>"
               var objCel = objRow.insertCell(2);
               objCel.innerHTML = "供应商： <select> <option>sdsafasfa</option><option>dssafasdfas</option></select>"
               var objCel = objRow.insertCell(3);
               objCel.innerHTML = "数量： <input type='text' value='"+index+"'/>"
                index++;
            }
            function deleteRow(tbIndex){
                if(index > 1){
                    index--;
                    product.deleteRow(index);
                    
                }
            }
        </script>
    </head>
    
    <body >
        <div class="content-box-content">
           <table class="input-content-table">
                
                <tr>
                   <td>订购时间:</td>
                    <td>
                        <input id="birthDate" type='text'  onfocus="HS_setDate(this)"/>
                        <!-- <input class="Wdate" type="text" id="Wdate"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})" /> -->
                    </td>
                </tr>
                <tr>
                   <td>经办人:</td>
                    <td>
                        <select>
                            <option>sdsafasfa</option>
                            <option>dssafasdfas</option>
                        </select>
                    </td>
                </tr>
                <tr>
                   <td style="vertical-align:top; ">产品:</td>
                    <td>
                        <table class="product-table" id="product">
                            <tr>
                                <td>
                                    产品类型：
                                    <select>
                                        <option>sdsafasfa</option>
                                        <option>dssafasdfas</option>
                                    </select>
                                </td>
                                <td>
                                    产品名称：
                                    <select>
                                        <option>sdsafasfa</option>
                                        <option>dssafasdfas</option>
                                    </select>
                                </td>
                                <td>
                                    供应商：
                                    <select>
                                        <option>sdsafasfa</option>
                                        <option>dssafasdfas</option>
                                    </select>
                                </td>
                                <td>
                                    数量：
                                    <input type='text' value='1'/>
                                </td>
                                
                            </tr>
                            
                        </table>
                        
                    </td>
                    <td style="vertical-align:middle; ">
                        <a href="#" class='add' onclick="insertRow(index)" >+</a> 
                        <a href="#" class='add' onclick="deleteRow(index)" >-</a> 
                    </td>
                </tr>
                <tr>
                   <td style="vertical-align:top; ">备注:</td>
                    <td>
                       <textarea>dhfgafuashhfusdhi</textarea>
                    </td>
                </tr>
                <tr>
                   <td></td>
                    <td>
                       <div class='button'>确认出库</div> 
                       <div class='button'>重新填写</div>
                    </td>
                </tr>
            </table>
    </div>

    </body>
</html>